import request from '@/utils/request'

const serverList = {
  // 查询会员列表
  getList(query) {
    return request({
      url: 'service/index',
      method: 'get',
      params: query
    })
  },
  // 添加服务
  addList(query) {
    return request({
      url: 'service/add',
      method: 'post',
      data: query
    })
  },
  // 查看服务
  getDetails(query) {
    return request({
      url: 'service/detail',
      method: 'get',
      params: query
    })
  },
  // 编辑
  editDetails(query) {
    return request({
      url: 'service/update',
      method: 'post',
      data: query
    })
  },
  // 上下架
  UpperStatus(query) {
    return request({
      url: 'service/update_status',
      method: 'post',
      data: query
    })
  },
  // 更换分类
  changeClass(query) {
    return request({
      url: 'cate',
      method: 'get',
      // params: query
    })
  }

}
export default serverList

